import { RouterEnum } from '@/enum/routerEnum';
import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/login',
    name: RouterEnum.LOGIN,
    component: () => import('@/components/login/index.vue'),
  },
  {
    path: '/:any(.*)',
    name: '404',
    component: () => import('@/components/404.vue'),
  },
];

export default routes;
